package bridge;

/**
 * @author A夜兔A
 * @data 2021年09月27日 16:32
 *
 * 桥式模式代码示例
 *
 */
public class Client {

    public static void main(String[] args) {

        Phone phone1 = new FoldedPhone(new XiaoMi());
        phone1.open();
        phone1.call();
        phone1.close();
        System.out.println("======================");
        Phone phone2 = new FoldedPhone(new Vivo());
        phone2.open();
        phone2.call();
        phone2.close();

    }

}
